<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <title>购买记录</title>
  <meta charset="UTF-8"/>
  <link rel="stylesheet" type="text/css" href="/css/mygoodsshelf.css"/>
  <!-- javascript- -->
  <script type="text/javascript" src="/js/jquery-3.2.js"></script>
  <script type="text/javascript" src="/js/infomation.js"></script>

</head>
<body>
    <!-- 导航条 -->
    <nav class="navbar">
      <div class="nav-menu">
        <ul class="menu">
          <li><a href="/">首页</a></li>
          <li><a href="/goToMallPage.do">二手商品</a></li>
          <!--                <li><a href="request.html">求购区</a></li>-->
        </ul>
      </div><!-- nav-menu -->

      <div class="nav-info">
        <!--			<a class="username" href="information.html">用户</a>-->
        <a href="/personal_info.do" th:text="${marketUser.uname}"></a>
        <!--			<a class="goodsshelf" href="register1.html">||&nbsp;&nbsp;&nbsp;注册</a>-->
        <a class="goodshelf" href="/goToMyCart.do">||&nbsp;&nbsp;&nbsp;我的购物车</a>
        <a class="logout" href="/logout.do">[ 退 出 ]</a>
      </div> <!-- nav-info -->
    </nav>

    <div align="center">
        <table border="1" cellspacing="10px">
            <thead>
                <tr>
                    <th width="150px">购买日期</th>
                    <th width="150px">购买时间</th>
                    <th width="150px">物品名称</th>
                    <th width="150px">物品种类</th>
                    <th width="150px">物品价格</th>
                    <th width="150px">购买数量</th>
                </tr>
            </thead>
            <tbody>
                <figure th:each="o:${myRecordList}">
                    <tr>
                        <td th:text="${o.date}" align="center"></td>
                        <td th:text="${o.time}" align="center"></td>
                        <td th:text="${o.gname}" align="center"></td>
                        <td th:text="${o.gkind}" align="center"></td>
                        <td th:text="${o.gprice}" align="center"></td>
                        <td th:text="${o.gnumber}" align="center"></td>
                    </tr>
                </figure>
            </tbody>
        </table>
    </div>


    <footer>
      <a href="#">©2021-7 二手物品交易</a>
      <a href="#">意见反馈&nbsp;&nbsp;&nbsp;联系我们&nbsp;&nbsp;&nbsp;隐私权声明&nbsp;&nbsp;&nbsp;使用条款</a>
    </footer>


</body>
</html>